package com.gujia.designpattern.strategy;

import com.gujia.designpattern.strategy.impl.FlyNoWay;

public class RubberDuck extends Duck{
    public RubberDuck() {

        this.setFlyingStragety(new FlyNoWay());
    }

    @Override
    public void display() {
        System.out.println("我全身发黄，嘴巴很红");
    }

    @Override
    public void quack(){
        System.out.println("嘎~嘎~嘎");
    }
}
